<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>
<%
if(session.getAttribute("un")==null){
    response.sendRedirect("indexAdmin.jsp?page=Admin&url=Login");
    out.println("You must be login..!");
}else{%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<script language="javascript" type="text/javascript" src="../script/validate.js"></script>
<script language="javascript">
    function kiemtra(){
        var ten = document.form1.txtusername;
        var question = document.form1.txtquestion;
	
	if( laChuoiRong(ten.value) )
	{
            alert('Username is not blank !');
            ten.focus();
            return false;
	}
        if( laChuoiRong(question.value) )
	{
            alert('Question is not blank !');
            question.focus();
            return false;
	}
        if(ten.value.length<4){
            alert('Username must be 4 characters or more!');
            ten.focus();
            return false;
        }
            return true;
    }
</script>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>

    <form action="../ControllResetPass" method="post" name="form1" id="form1" onsubmit="return kiemtra()">
            <table>
                <tr align="center">
                    <td ></td>
                    <td colspan="2"><h3 align="center">Reset Password</h3></td>
                </tr>
                <tr>
                    <td>User name: </td>
                    <td><input type="text" name="txtusername" value="" /></td>
                </tr>
                <tr>
                    <td>Question: </td>
                    <td><input type="text" name="txtquestion" value="" /></td>
                </tr>
                    <td></td>
                    <td><input type="submit" name="btresetpass" value="Submit" /></td>
                </tr>
            </table>
        </form>
    
    
    </body>
</html>
<%}%>